﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainTemplate.Master" AutoEventWireup="true" CodeBehind="SendBillsForm.aspx.cs" Inherits="SmartCounters.SendBillsForm" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ScriptsAndStylesPlaceHolder" runat="server">
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="TitleContentPlaceHolder" runat="server">
Send Bills
</asp:Content>

<asp:Content ID="SendBills" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">
<asp:UpdatePanel ID="SendBillsUpdatePanel" runat="server">
<ContentTemplate>
	<asp:Button class="Button" ID="btSendBills" OnClick="CreateAndEmailBills" Text="Confirm and Send Bills" runat="server"  />
	<asp:Repeater ID="rpBillsToSendList" runat="server">
		<ItemTemplate>
			<fieldset class="SendBillsFieldset shadow">
				<legend><asp:Label ID="BillTile" runat="server" /></legend>
				<div><asp:Label ID="lblAssociatedUsers" runat="server">Associated Users: </asp:Label></div>
				<div class="ListContainer">
				<asp:Repeater ID="rpAssociatedUser" runat="server">
				<ItemTemplate>
					<div>
						<asp:Label>Username: </asp:Label>
						<asp:Label ID="lblUsername" runat="server"></asp:Label>
					</div>
					<div>
						<asp:Label>Email: </asp:Label>
						<asp:Label ID="lblEmail" runat="server"></asp:Label>
					</div>
				</ItemTemplate>
				<SeparatorTemplate>
				<hr />
				</SeparatorTemplate>
				</asp:Repeater>
				</div>
				<div><asp:Label ID="lblYear" runat="server">Year: </asp:Label></div>
				<div><asp:Label ID="lbMonth" runat="server">Month: </asp:Label></div>
				<div><asp:Label ID="lblTotalUsage" runat="server">Total Usage: </asp:Label></div>
				<div><asp:Label ID="lblTotalSum" runat="server">Sum To Pay: </asp:Label></div>
			</fieldset>
		</ItemTemplate>
		<SeparatorTemplate>
			<hr />
		</SeparatorTemplate>
	</asp:Repeater>
</ContentTemplate>
<Triggers>
	<asp:AsyncPostBackTrigger ControlID="btSendBills" EventName="Click" />
</Triggers>
</asp:UpdatePanel>
<asp:UpdateProgress ID="UpdateProgress1" AssociatedUpdatePanelID="SendBillsUpdatePanel" runat="server">
<ProgressTemplate>
<div class="modalBackground">
	<div class="modalImageContainer"><img alt="Page Loading" class="PageLoading" src="/images/PageLoading.gif" /></div>
	<div class="modalTextContainer">Please Wait...</div>
</div>
</ProgressTemplate> 
</asp:UpdateProgress>
</asp:Content>
